﻿using System;

namespace Core.Interfaces
{
    /// <summary>
    /// 实体接口
    /// </summary>
    /// <typeparam name="TKey">主键类型</typeparam>
    public interface IEntity<TKey>
    {
        /// <summary>
        /// 主键
        /// </summary>
        TKey Id { get; set; }

        ///// <summary>
        ///// 创建时间
        ///// </summary>
        //DateTime CreatedTime { get; set; }

        ///// <summary>
        ///// 更新时间
        ///// </summary>
        //DateTime? UpdatedTime { get; set; }

        /// <summary>
        /// 是否删除（软删除）
        /// </summary>
        bool IsDeleted { get; set; }
    }
}